#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
	int number[10];
	int i;
	int w = 0;
	for (i = 0; i < 10; i++) {
		w = 1 + i;
		number[i] = w;
	}
	int k = 7;
	int count = sizeof(number) / sizeof(number[0]);
	int left = 0;
	int right = count - 1;
	while (left <= right) {
		int mid = (left + right) / 2;
		if (number[mid] > k) {
			right = mid - 1;
		}
		else if (number[mid] < k) {
			left = mid + 1;
		}
		else if (number[mid] = k) {
			printf("find out,he is %d", mid);
			break;
		}
	}
	if (left > right) {
		printf("i am sorry,we cannot find out he");
	}
	return 0;


}     